package cn.darkhorse.device.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 油耗分类
 * </p>
 *
 * @author yangtianqi
 * @since 2024-11-06
 */
@Getter
@Setter
@TableName("mes_oil_category")
@ApiModel(value = "MesOilCategory对象", description = "油耗分类")
public class MesOilCategory implements Serializable, TransPojo {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

    @ApiModelProperty("编号")
    private String code;

    @ApiModelProperty("型号")
    private String model;

    @ApiModelProperty("类型")
    @Trans(type = TransType.DICTIONARY ,key = "oil_type")
    private String type;

    @TableField(exist = false)
    private String typeName;

    @ApiModelProperty("是否启用")
    private Integer enable;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("备注")
    private String remark;


}
